# import datetime  # 导入模块
#
# date1 = datetime.datetime(2022, 1, 1)
# date2 = datetime.datetime(2022, 10, 10)
#
# print(date2 - date1)  # 计算两个时间差

# 翻转单词
# def reverse_word(s):
#     tokens = s.split()  # 将字符串以空格切分，返回值为列表
#     tokens.reverse()  # 将列表逆序
#     return ' '.join(tokens)  # 将列表内容合并
#
#
# print(reverse_word('I am a student.'))

# def rotate_string(s, goal):
#     # 长度相同且是两个拼接s的子串
#     return len(s) == len(goal) and goal in s + s
#
#
# print(rotate_string('abcde',  'cdeab'))

# def count_prefixes(words, s):
#     cnt = 0
#     for word in words:  # 依次遍历字符串
#         if s.startswith(word):  # 判断是否是s的前缀
#             cnt += 1
#     return cnt
#
#
# print(count_prefixes(["a", "b", "c", "ab", "bc", "abc"],  "abc"))

# import os
# inputPath = input('请输入待搜索路径: ')
# pattern = input('请输入待搜索关键词: ')
# for dirpath, dirnames, filenames in os.walk(inputPath):
#     for f in filenames:
#         if pattern in f:
#             print(f'{dirpath}/{f}')

import qrcode


img = qrcode.make('小林真帅')
img.save('qrcode.png')

